<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="/resource/common/taglib.jspf"%>
<%@include file="/resource/common/jquery.jspf"%>
<%@include file="/resource/common/commonCss.jspf"%>
<%@include file="/resource/common/bootstrap.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${SESSION_COMPANY}-WebHouseTypeRelation</title>
<script type="text/javascript" src="${ctxStatic }/js/system/layerParentFn.js"></script>
<script type="text/javascript">
	var PATH = "${ctx }";
	function addLayerOpen(id,titles,edit){
		if(edit){
			titles = id >0?"编辑："+titles:"新增：";
			layerParentFn.layerOpenModalDialog(titles,"addWebHouseTypeRelation.do?id="+id,1065,530,"inputForm","saveWebHouseTypeRelationJson.do");
		}else{
			titles = "浏览:"+titles;
			layerParentFn.layerOpenBrowseModalDialog(titles,"addWebHouseTypeRelation.do?id="+id,1065,530);
		}
	}
</script>

</head>
<body>
	<div id="body-wrapper">
		<div id="main-content">
			<div class="clear"></div>
			<div class="content-box-content">
				<div class="search-box">
					<shiro:hasPermission name="webHouseTypeRelation:SYS_ADD">
						<a href="javascript:void(0)" onclick="addLayerOpen(0,'',true);" class="btn btn-sm btn-primary" ><i class="fa fa-plus"></i>&nbsp;&nbsp;新增</a>
					</shiro:hasPermission>
					<hr style="margin-top: 10px; margin-bottom: 10px;">
					<shiro:hasPermission name="webHouseTypeRelation:SYS_SEARCH">
						<form action="webHouseTypeRelationList.do" method="post" id="fromsearch" class="form-inline">
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">houseId</div>
									<input type="text" class="form-control" value="${entity.houseId}" name="houseId" id="houseId" placeholder="houseId" />
								</div>
							</div>
							<div class="form-group">
								<div class="input-group">
									<div class="input-group-addon">typeId</div>
									<input type="text" class="form-control" value="${entity.typeId}" name="typeId" id="typeId" placeholder="typeId" />
								</div>
							</div>
							<button type="submit"  class="btn btn-sm btn-primary"> <i class="fa fa-search"></i>查询 </button>
						</form>
					</shiro:hasPermission>
				</div>
				<div class="tab-content default-tab" id="tab1">
					<table class="table table-bordered table-hover">
						<thead>
							<tr>
								<th class="w40 text-center">编号</th> 
								<th class="w90 text-center">houseId</th> 
								<th class="w90 text-center">typeId</th> 
								<th class="w210 text-center">操作</th>
							</tr>
						</thead>
						<tbody>
							#foreach($entity in $pageBean.list)
							<tr id="tr_${entity.id }">
								<td class="text-center">${startRow+abc.count}</td>

								<td>${entity.houseId}</td>

								<td>${entity.typeId}</td>
								<td class="text-center">
									<shiro:hasPermission name="webHouseTypeRelation:SYS_BROWSE">
										<a href="javascript:void(0);" onclick="addLayerOpen(${entity.id},'${entity.className}',false);" title="浏览" class="btn btn-xs btn-info"><i class="fa fa-eye"></i>&nbsp;浏览</a>
									</shiro:hasPermission>
									<shiro:hasPermission name="webHouseTypeRelation:SYS_EDIT">
										<a href="javascript:void(0);" onclick="addLayerOpen(${entity.id},'',true);" class="btn btn-xs btn-primary"><i class="fa fa-edit"></i>&nbsp;编辑</a>
									</shiro:hasPermission> 
									<shiro:hasPermission name="webHouseTypeRelation:SYS_DELETE">
										<c:choose>
											<c:when test="${entity.status==1 }">
												<a href="javascript:void(0);" onclick="layerParentFn.listRemoveRowDeleteByIDIsDeleted(${entity.id },${entity.isDeleted },'updateStatusWebHouseTypeRelation.do');" class="btn btn-xs btn-danger"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
											</c:when>
											<c:otherwise>
												<a href="javascript:void(0);" onclick="layerParentFn.listRemoveRowDeleteByIDIsDeleted(${entity.id },${entity.isDeleted },'updateStatusWebHouseTypeRelation.do');" class="btn btn-xs btn-info"><i class="fa fa-edit"></i>&nbsp;恢复</a>
											</c:otherwise>
										</c:choose>
									</shiro:hasPermission>
								</td>
							</tr>
							#end
						</tbody>
						<tfoot>
							<tr>
								<td colspan="10">
									<div class="bulk-actions align-right"></div>
									<div class="paginationstyle">
										<page:pageboot url="webHouseTypeRelationList.do?houseId=${entity.houseId}&typeId=${entity.typeId}&" tagnum="2" pageBean="${pageBean}" />
									</div>
									<div class="clear"></div>
								</td>
							</tr>
						</tfoot>
					</table>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
